package com.interview.dao;

import com.interview.pojo.Catalogue;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
@Repository
public interface CatalogueMapper   extends Mapper<Catalogue> {


    @Select("select count(*) FROM  catalogue where title_id=#{id}")
    public  int count(@Param("id") String id);


    //查询全部文章的数量
    @Select("select count(*) from catalogue")
    public int catalogue_count_all();
}
